package com.yuandian.api.customer_perception.vo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 类说明: 告警分布
 *
 * @Date 2021/8/25 15:31
 * @Author User
 */
@Getter
@Setter
@ToString
public class AlarmDistributionVo {

    /**
     * 时间刻度
     */
    private String timeLabel;

    /**
     * 告警数
     */
    private Integer alarmCount;

    public static AlarmDistributionVo build (String timeLabel, Integer count) {
        AlarmDistributionVo vo = new AlarmDistributionVo();
        vo.setTimeLabel(timeLabel);
        vo.setAlarmCount(count);

        return vo;
    }
}
